package org.dromara.system.domain.bo;

import org.dromara.system.domain.DeviceVariableAssociation;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 设备变量关联业务对象 device_variable_association
 *
 * @author Lion Li
 * @date 2024-10-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = DeviceVariableAssociation.class, reverseConvertGenerate = false)
public class DeviceVariableAssociationBo extends BaseEntity {

    /**
     * 设备Id
     */
    @NotNull(message = "设备Id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long deviceId;

    /**
     * 变量id
     */
    @NotNull(message = "变量id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long variableId;


}
